package com.qf.sclg.result;

/**
 * Created with IntelliJ IDEA.
 * User: zdk
 * Date: 2021/10/12 16:35
 * Description:
 * Version: V1.0
 */
//设置枚举变量
public enum ResponseCode {
    SUCCESS("200","success"),
    ERROR("500","systemError"),
    SQLEXCEPTION("10000","sql异常"),
    PARAMEXCEPTION("1001","参数异常"),
    AUTH_EXCEPTION("10002","用户或者密码错误"),
    USERINFO_EXCEPTION("10003","用户信息过期"),
    ;
    private String code;
    private String message;

     ResponseCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
